﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MakersEngine
{
    class ArgMgr
    {
        // Will handle all the Arguments provided (Cleaner coding base)
        public static void Handle(string[] args)
        {
            try
            {

                if (args.Length >= 0)
                {
                    if (args[0].Equals("-update"))
                    {

                    }
                    else if (args[0].Equals("-reset"))
                    {
                        ResMgr.ResetAll();
                    }
                    else
                    {
                        Console.ForegroundColor = ConsoleColor.Yellow;
                        Console.WriteLine("An argument was provided, but it's invalid / unknown!");
                        Console.ReadLine();
                    }
                }
            }
            catch
            {
                Console.ForegroundColor = ConsoleColor.White;
                Console.WriteLine("No arguments detected, proceeding under normal conditions!");
                Console.ReadLine();
            }
        }
    }
}
